
#ifndef WF_GETENT_H
#define WF_GETENT_H

#include "pf_previewactioninterface.h"
#include "pf_modification.h"
#include "document_interface.h"

 class Plugin_Entity;

/**
 * This action class can handle user events to select entities from plugin.
 */

class WF_GetEnt : public PF_ActionInterface {
	Q_OBJECT
//public:
    /**
     * Action States.
     */
/*    enum Status {
        Select
    };*/

public:
    WF_GetEnt(PF_Container& container,
                        PF_GraphicView& graphicView);
    ~WF_GetEnt() {}

    virtual void updateMouseButtonHints();

/*    virtual void init(int status=0);
	
    virtual void mouseReleaseEvent(PF_MouseEvent* e);
	
    virtual void updateMouseCursor();
    virtual void updateToolBar();*/

    virtual void trigger();
//    virtual void keyPressEvent(PF_KeyEvent* e);
    virtual void mouseReleaseEvent(PF_MouseEvent* e);
    virtual void updateMouseCursor();

    void setMesage(QString msg);
    bool isCompleted(){return completed;}
    Plugin_Entity *getSelected();

private:
    bool completed;
    QString mesage;
    PF_Entity* en;

};

#endif
